package com.beyondsoft.mcms.domain;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.ManyToMany;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.annotations.Type;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class GroupInfo {

    /**
     */
    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Item> positionTypes = new HashSet<Item>();

    /**
     */
    @ManyToMany(cascade = CascadeType.ALL)
    private Set<Item> businessTypes = new HashSet<Item>();

    /**
     */
    @NotNull
    @Size(min = 1)
    @Column(unique = true)
    private String name;

    
}
